import 'package:flutter/material.dart';
import 'package:flutter_html/flutter_html.dart';
import 'package:ball_lion/module/home/inner_video/inner_video.dart';
import 'package:ball_lion/widgets/circular.dart';
import 'package:ball_lion/widgets/player/qs_player_logic.dart';

class InnerVideoExtension extends HtmlExtension {
  final int id;
  final QsPlayerLogic logic;
  InnerVideoExtension({required this.id, required this.logic});

  @override
  Set<String> get supportedTags => {"video"};

  @override
  InlineSpan build(ExtensionContext context) {
    return WidgetSpan(
        child: Circular(
            radius: 8,
            clipBehavior: Clip.antiAlias,
            child: InnerVideoWidget(logic: logic, extensionContext: context)));
  }
}
